
# stores player info, especially inventory
class Player:
    def __init__(self):
        self.inventory = {}
        self.playerName = ""
        self.gender = "F"
        self.playerPosessionPronoun = "her"
        self.playerThirdPersonSingularPronoun = "she"
    
    # adds item to the inventory for this player
    def add_item(self,item):
        self.inventory[item.get_id()] = item
        return
    
    # remove and return item from inventory (if it is there)
    # otherwise return empty string
    def pop_item(self,item_id):
        return self.inventory.pop(item_id,'')
    
    def getPlayerName(self):
        return self.playerName
    
    def setPlayerName(self,name):
        self.playerName = name
     
    def getPlayerGender(self):
        return self.playerGender
    
    def setPlayerGender(self,gender):
        self.playerGender = gender       

    def getPlayerPosessionPronoun(self):
        return self.playerPosessionPronoun
    
    def setPlayerPosessionPronoun(self,playerPosessionPronoun):
        self.playerPosessionPronoun = playerPosessionPronoun   
    
    def getPlayerThirdPersonSingularPronoun(self):
        return self.playerThirdPersonSingularPronoun
    
    def setPlayerThirdPersonSingularPronoun(self,playerThirdPersonSingularPronoun):
        self.playerThirdPersonSingularPronoun = playerThirdPersonSingularPronoun        